package com.lintf.devdemo.entity.po;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @ system:Window
 * @ author:lin tingfeng
 * @ data:2022/09/29-12:01
 * @ package_name:com.lintf.devdemo.entity.po
 * @ project_name:DevDemo
 * @ desc: 用户账户信息类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserAccount {

    private String userId;

    private String account;

    private String password;

    public UserAccount(String account, String password) {
        this.account = account;
        this.password = password;
    }

    private String creatorId;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    private String updaterId;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}
